<?php

namespace app\common\validate;

class ServiceStoreActivityValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'service_id'    => '服务ID',
        'store_id'      => '门店ID',
        'start_time'    => '开始时间',
        'end_time'      => '结束时间',
        'activity_type' => '类型',
        'discount'      => '折扣率',
        'minus_price'   => '抵扣金额',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'getServiceStoreActivityPage' => [],
        'getServiceStoreActivityList' => [],
        'setServiceStoreActivityItem' => [],
        'addServiceStoreActivityItem' => [
            "services"      => 'require',
            "activity_type" => 'require',
//            "discount"      => 'require',
//            "minus_price"   => 'require',
            "start_time"    => 'require|dateFormat:Y-m-d H:i:s',
            "end_time"      => 'require|dateFormat:Y-m-d H:i:s',
        ],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
